package sch.frog.creational.builderpattern;

import sch.frog.creational.builderpattern.builder.Builder;
import sch.frog.creational.builderpattern.product.IProduct;

public class Director {

    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public IProduct construct(){
        builder.buildPartOne();
        builder.buildPartTwo();
        return builder.build();
    }
}
